<template>
	<view>
		
		<u-empty v-if="load=='nomore' && list.length==0 " text="暂无数据" mode="search" icon-size='150' class="empty" margin-top="100rpx;"/>
		</u-empty>
		<u-loadmore v-else-if="page!=1 " font-size='30' :status="load" icon-type="flower" :load-text="loadText"
			 margin-top="20" margin-bottom='20'	/>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				loadText: {
					loadmore: '上拉加载',
					loading: '加载中',
					nomore: '没有更多了'
				},
			}
		},
		props: {
			load: {
				type: String,
				default: 'loading'
			},
			page: {
				type: Number,
				default: 1
			},
			list:{
				type: Array,
				default: []
			}

		}
	}
</script>
<style lang="scss" scoped>
	.empty {
		padding-top: 150rpx;
	}
</style>
